<% layout("../../includes/layout-form-v2") -%>
<form id="form" class="form-submission backend <%-action%> id_<%- id %>" title="<%-controller%>" action='/backend/<%-controller%>/<%- action %>/<%- id %>' method='post' onsumbit="return myFunction()" >
        <div class="box-body">
        
            <div class="input-group">
			    <span class="input-group-addon"><b>Label</b></span>
			    <input name="label" type="text" class="form-control" id="label" value="<%- record['label'] %>" placeholder="Enter label">
			    <span class="input-group-addon error_msg_field err_label"><b class="error_msg error_in_label"></b></span>
			</div><br/>
            
            <div class="input-group">
			    <span class="input-group-addon"><b>Controller</b></span>
			    <input name="controller" type="text" class="form-control" id="controller" value="<%- record['controller'] %>" placeholder="Enter controller">
			    <span class="input-group-addon error_msg_field err_controller"><b class="error_msg error_in_controller"></b></span>
			</div><br/>
            
            <div class="input-group">
			    <span class="input-group-addon"><b>Description</b></span>
			    <input name="description" type="text" class="form-control" id="description" value="<%- record['description'] %>" placeholder="Enter description">
			    <span class="input-group-addon error_msg_field err_description"><b class="error_msg error_in_description"></b></span>
			</div><br/>    
            
           <div class="input-group">
			    <span class="input-group-addon"><b>Sort Order</b></span>
			    <input name="ordering" type="text" class="form-control" id="ordering" value="<%- record['ordering'] %>" placeholder="Enter ordering">
			    <span class="input-group-addon error_msg_field err_ordering"><b class="error_msg error_in_ordering"></b></span>
			</div><br/>        


        </div><!-- /.box-body -->

    <div class="box-footer">
        <input type="submit" class="btn btn-primary btn-lg <%-action%>" title="<%-controller %>" value="Save" />
    </div>
</form>
